<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>demo</title>
    <script type="text/javascript" src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <form action="javascript:;">

            <input type="checkbox" name="agree" v-model="isAgree"> :你是否同意此协议\


            请选择你喜欢的城市:
      <input type="checkbox" name="city" v-model="likeCity" value="广州">广州
      <input type="checkbox" name="city" v-model="likeCity" value="深圳">深圳
      <input type="checkbox" name="city" v-model="likeCity" value="惠州">惠州
      <input type="checkbox" name="city" v-model="likeCity" value="东莞">东莞
        </form>
    </div>
</body>
<script type="text/javascript">
    Vue.config.productionTip = false
    const vm = new Vue({
        el: "#app",
        data() {
            return {
                isAgree: true,
                likeCity: []
            }
        }
    })
</script>

</html>

</html>